package com.koron.order.change.mapper;

import com.koron.order.change.bean.po.OrderChangePo;
import com.koron.order.change.bean.query.OrderChangeQuery;
import com.koron.order.change.bean.vo.OrderChangeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (OrderChange)表数据库访问层
 *
 * @author zhouj
 * @since 2022-02-16 18:14:27
 */
public interface OrderChangeMapper {

    int insertOrUpdate(OrderChangePo orderChange);

    int insertOrUpdateBatch(@Param("list") List<OrderChangePo> orderChangeList);

    int insert(OrderChangePo orderChange);

    int insertBatch(@Param("list") List<OrderChangePo> orderChangeList);

    int update(OrderChangePo orderChange);

    int deleteById(String id);

    OrderChangeVo queryById(String id);

    List<OrderChangeVo> queryList(OrderChangeQuery query);

    int updateBaseOrderMajor(@Param("tableName") String tableName, @Param("orderId") String orderId, @Param("major") String major);

}